package chord;

/**
 * 
 * @author prabhu
 */
public class Main
{
    public static void main(String[] args)
    {
	int intNodeID = 0;

	// remove this try catch block
	try
	{
	    intNodeID = Integer.parseInt(args[0]);
	}
	catch (ArrayIndexOutOfBoundsException ae)
	{
	}

	Node node = new Node(intNodeID);
	GUI gui = new GUI(node);
	gui.run();
	node.setGUICallback(gui);

	try
	{
	    node.initiate(args[1]);
	}
	catch (Exception e)
	{
	    e.printStackTrace();
	}
    }
}